package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资仓库业务对象 emg_warehouse
 *
 * @author ruoyi
 * @date 2023-11-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EmgWarehouseBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 所属单位
     */
     private Long deptId;

    /**
     * 仓库类型
     */
    @NotBlank(message = "仓库类型 不能为空", groups = {AddGroup.class, EditGroup.class})
    private String typeId;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 仓库照片
     */
//    @NotBlank(message = "仓库照片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String avatarUrl;

    /**
     * 仓库面积
     */
    @NotBlank(message = "仓库面积 不能为空", groups = {AddGroup.class, EditGroup.class})
    private String areaId;

    /**
     * 坐标
     */
//    @NotBlank(message = "坐标不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lat;

    /**
     * 坐标
     */
//    @NotBlank(message = "坐标不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lng;

    /**
     * 地址
     */
//    @NotBlank(message = "地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 负责人1
     */
    @NotBlank(message = "负责人1不能为空", groups = {AddGroup.class, EditGroup.class})
    private String leader1;

    /**
     * 负责人1电话
     */
    @NotBlank(message = "负责人1电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone1;

    /**
     * 负责人2
     */
//    @NotBlank(message = "负责人2不能为空", groups = {AddGroup.class, EditGroup.class})
    private String leader2;

    /**
     * 负责人2电话
     */
//    @NotBlank(message = "负责人2电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone2;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;


}
